<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
	xmlns:bf="http://www.bssmanager.com/jsf" xmlns:c="http://java.sun.com/jstl/core">
	
	
	<c:set var="id11" value="${empty idd ? 'patientInput':idd}"/>
	
	<table width="300px">
		<tr class="norender">
			<td colspan="1" align="left" width="30%">
				<h:outputLabel value="Patient's Name:" /></td>
			<td colspan="2" align="left" width="50%">
				<h:inputText id="${id11}" value="#{controller.vacate}"/>
				<rich:suggestionbox for="${id11}" status="${id11}Status" limitToList="true" width="400"
				suggestionAction="#{controller.admissions}" minChars="2" nothingLabel="#{empty notFoundMessage ? 'Not found' : notFoundMessage }" 
					var="result">
					<h:column>
						<h:outputText value="#{result.patient.firstName} #{result.patient.middleName} #{result.patient.lastName}" />
					</h:column>
					<a4j:support limitToList="true" event="onselect" onsubmit="showLoading();" oncomplete="hideLoading();" action="#{controller[selectMethod]}" reRender="#{reRender}" status="${id11}Status" />
				</rich:suggestionbox>
			</td>
			<td colspan="1" align="left" width="20%">
				<a4j:status forceId="true" id="${id11}Status">
					<f:facet name="start">
						<h:graphicImage value="/images/im1.gif" />
					</f:facet>
				</a4j:status>
			</td>						
		</tr>							
	</table>
</ui:composition>